import request from '@/utils/request'

// 获取全部小区
export const getAllCommunityApi = () => request({
  url: '/community',
  method: 'get'
})

// 获取对应楼栋
export const getBuildingApi = (code) => request({
  url: '/house/building?community_code=' + code,
})

// 获取对应房屋
export const getHouseApi = (code) => request({
  url: '/house/index?building_code=' + code
})
import request from '@/utils/request.js'

export const getCommunityList = () => {
  return request({
    url: '/community',
    methods: 'get',
  })
}
export const getBuildingList = (code) => {
  return request({
    url: '/house/building?0=' + code,
    methods: 'get'
  })
}
